home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: FW_CString
- Sent: 8/20/96 9:23 AM
- Received: 8/20/96 9:31 AM
- From: Mary Boetcher, boetche1@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >There does not appear to be a coversion for FW_CString to and from a
- >pascal string.
-
- You can use these FW_CString functions:
- void ExportPascal(FW_PascalChar* buffer) const;
- void ReplaceAll(const FW_PascalChar* string);
-
- To convert from an FW_CString to a Pascal string, call ExportPascal:
-
- Str255 pascalString;
- FW_CString string("Test");
- string.ExportPascal(pascalString);
-
- To create an FW_CString from a Pascal string, do this:
-
- FW_CString string;
- string.ReplaceAll(pascalString);
-
- Mary Boetcher
- ODF Person
-